﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Silverlight.PolicyServers;
using System.Net;

namespace PolicyServer
{
    class Program
    {
        static void Main(string[] args)
        {
            MulticastPolicyConfiguration config = new MulticastPolicyConfiguration();
            config.AnySourceConfiguration.Add("*", new MulticastResource(
                IPAddress.Parse("230.87.54.122"), 3000));

            using (MulticastPolicyServer server = new MulticastPolicyServer(config))
            {
                server.Start();

                while (Console.ReadKey(true).Key != ConsoleKey.Escape);

                server.Stop();
            }
        }
    }
}
